﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Mouse Moves</title>
    <script type="text/javascript" src="Scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript" src="Scripts/rx.js"></script>
    <script type="text/javascript" src="Scripts/rx.jquery.js"></script>
    <script type="text/javascript">
        $(function () {
            var results = document.getElementById('results');
            $(document).mousemove(function (event) {
                results.innerHTML = 'X: ' + event.pageX + ' Y: ' + event.pageY;
            });
        });
    </script>
</head>
<body>
    <p id="results"></p>
    <script type="text/javascript">
//            $(document).toObservable('mousemove').Subscribe(function (event) {
//                results.innerHTML = 'X: ' + event.pageX + ' Y: ' + event.pageY;
//            });
</script>
</body>
</html>